
//process.exit 结束当前进程

/* console.log(1);
process.exit()
console.log(2);
console.log(3);
console.log(4); */

//process.nextTick() 将函数插入到tick队列中


setTimeout(()=>{
    console.log(3);
})

queueMicrotask(()=>{
    console.log(2);
})

process.nextTick(()=>{
    console.log(1)
})

console.log(4);